package com.palace.saw.module.app.controller.admin.article.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.palace.saw.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.palace.saw.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 文章管理分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ArticlePageReqVO extends PageParam {

    @Schema(description = "分类编号", example = "6209")
    private Long categoryId;

    @Schema(description = "关联商品编号", example = "21601")
    private Long spuId;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章作者")
    private String author;

    @Schema(description = "文章封面图片地址", example = "https://www.iocoder.cn")
    private String picUrl;

    @Schema(description = "文章简介")
    private String introduction;

    @Schema(description = "浏览次数", example = "19444")
    private String browseCount;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "是否热门(小程序)")
    private Boolean recommendHot;

    @Schema(description = "是否轮播图(小程序)")
    private Boolean recommendBanner;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}